-- card: 3017 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2687 -- name: -- part 2 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=48 top=153 right=175 bottom=148 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Results of a find ----- HyperTalk script ----- on mouseUp hide msg set cursor to watch ask "Put a word here that is easy to find." with "go" find it put the result && " <--This is the result of that FIND (it's empty)." wait 2 secs ask "Put a word here that is impossible to find." with "xhrjddxs" find it put the result && "<--This is the result of that FIND (it's not empty)." end mouseUp -- part 3 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=48 top=178 right=200 bottom=148 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Error Trapping ----- HyperTalk script ----- on mouseUp ask "Put a word here that is easy to find." with "go" find it if the result is NOT empty then put "FIND was unsuccessful. -- the result is NOT FOUND" else put "FIND was successful. -- the result has nothing in it" end if ask "Put a word here that is impossible to find." with "gobbledygook" find it if the result is NOT empty then put "FIND was unsuccessful. -- the result is NOT FOUND" else put "FIND was successful. -- the result has nothing in it" end if end mouseUp -- part 4 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=48 top=204 right=226 bottom=148 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: the result ----- HyperTalk script ----- on mouseUp ask "Put a word here that is easy to find." with "go" find it put the result end mouseUp -- part contents for background part 8 ----- text ----- the result -- part contents for background part 18 ----- text ----- Indicates whether a FIND or GO command was successful or not. A failed FIND returns "not found". A failed GO returns "no such card". A successful FIND/GO returns no result (an empty result).